export default {
	computed:{
		fixedTime()
		{
			return (time,label=true)=>{
				 return  this.$dayjs('1900-01-01 ' + time).format(label?'A HH:mm':'HH:mm') 
			}
		},
		itineraryText(){
			return (i)=>{
				let itext = this.$dayjs().add(i,'day').format('YYYY-MM-DD')
				if(this.itineraryMap[itext])
				{
					return `${this.itineraryMap[itext].count}项目`
				}else 
				{
					return `无`
				}
			}
		},
		itineraryMap(){
			let map = this.itinerary.reduce((map,item)=>{
				map[item.start_date] = item
				return map
			},{})
			return map
		}
	},
	data(){
		return {
			itinerary:[],
			today:{
				job_count:0
			}
		}
	}
}